{%extends "bootstrap/base.html"%}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}登录{% endblock %}
{% block content %}
    {#  渲染flash消息,Flash 消息只显示一次,然后就消失了   #}
    {% for message in get_flashed_messages() %}
        <div class="alert alert-warning">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        {{ message }}
        </div>
    {% endfor %}
    <div class="page-header">
        <h1>登录</h1>
    </div>
    <div class="col-md-4">
        {# 使用bootstrap快速渲染表单 #}
        {{ wtf.quick_form(form,url_for('myuser.login')) }}
    </div>
{% endblock %}